﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ItemNewsList.ascx.cs"
    Inherits="Module_News_Controls_ItemNewsList" %>
<%@ Register TagPrefix="avg" Namespace="Avg.Controls" Assembly="SmartPager" %>
<%@ Import Namespace="DemoObject" %>
<%@ Import Namespace="BusinessObjects" %>
<div class="box-1">
    <div class="header-box">
        <p>
            <span><strong><b><a href='<%=UrlBuilder.UrlListNews(CategoryTextId) %>' title="<%=CategoryName%>">
                <%=CategoryName%></a></b> </strong>
                <label>
                </label>
            </span>
        </p>
    </div>
    <div class="middle-box itemnews">
        <asp:Repeater ID="rpt" runat="server">
            <ItemTemplate>
                <div class="itemnews-1 itemnew-line">
                    <h3>
                        <a href="<%#UrlBuilder.UrlNewsDetail(((TblNews)Container.DataItem).TblCategory.TextId,Eval("TextId").ToString()) %>"
                            title=' <%#Eval("Title") %>'>
                            <%#Eval("Title") %></a></h3>
                    <span class="datetime">Ngày tạo:
                        <%# ((DateTime)Eval("CreatedDate")).ToString("dd/MM/yyyy") %></span>
                    <br />
                    <br />
                    <a href="<%#UrlBuilder.UrlNewsDetail(((TblNews)Container.DataItem).TblCategory.TextId,Eval("TextId").ToString()) %>"
                        title=' <%#Eval("Title") %>'>
                        <img src=" <%#UrlBuilder.ImageUrl(Eval("ImageUrl").ToString(),250,null)%>" class="imagenews"
                            alt="" /></a>
                    <div>
                        <%#Eval("Summary") %>
                        <div class="viewmore">
                            <a href="<%#UrlBuilder.UrlNewsDetail(((TblNews)Container.DataItem).TblCategory.TextId,Eval("TextId").ToString()) %>"
                                title='Xem thêm >> <%#Eval("Title") %>'>Xem thêm >></a>
                        </div>
                    </div>
                    <div style="clear: both">
                    </div>
                </div>
            </ItemTemplate>
        </asp:Repeater>
        <avg:SmartPager ID="smartPager" runat="server" Visible="false" />
    </div>
    <div class="footer-box">
        <span>
            <label>
            </label>
        </span>
    </div>
</div>
